
"use strict"

const Controller = require("egg").Controller


/**
 * @Controller LxController lpx测试
 */
class LxController extends Controller {

    /**
     * @Router POST /lx
     * @Request body lxPost id id唯一标识
     * @Response 200 baseResponse ok
     */
    async index(){
        const  { ctx } = this
        // console.log(this.app.vname)
        // console.log(ctx.app.vname)
        ctx.validate({id:"string"},ctx.query)
        ctx.cookies.set("name","lpx")
        ctx.body  = {
            result:ctx.query.id
        }
    }
}

module.exports = LxController